<?php
namespace app\model\user;

use think\Model;

class ZxlKnowStoreSavingsCardModel extends Model
{
    protected $name = 'zxl_know_store_savings_card';

    /**
     * 关联获取卡信息
     */
    public function card(){
        return $this->hasOne(ZxlKnowStoreSavingsCardModel::class, "id", "card_id")->field("id, name, price, period_validity");
    }
}